module.exports = {
    createProductRules: {
        name: { type: 'string', required: true, message: '请输入商品名称' },
        price: { type: 'number', required: true, message: '请输入商品价格' },
    },
    deleteProductRules: {
        id: { required: true, message: '请输入商品id' },
    },
    getProductRules: {
        id: { required: true, message: '请输入商品id' },
    },
    updateProductRules: {
        name: { type: 'string', required: true, message: '请输入商品名' },
        id: { required: true, message: '请输入商品id' },
    },
}